package com.ftg.learn.chapter08.pattern.proxy.image1;

import lombok.Data;

/**
 * 真实照片
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/4 10:27
 */
@Data
public class Reallmage implements Image {

   private String fileName;

   public Reallmage(String fileName){
       this.fileName=fileName;
       loadFromDisk();
   }

    @Override
    public void display() {
        System.out.println(fileName+"显示无美颜照片");
    }

    private void loadFromDisk(){
        System.out.println(fileName+"加载中....");
    }

}
